// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   AbstractPanel.java

package com.boci.common.ui;

import com.boci.common.ui.control.DisclaimerPanel;
import com.boci.common.vo.ResponseVO;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;
import java.util.Locale;
import javax.swing.JPanel;

public abstract class AbstractPanel extends JPanel
    implements ActionListener
{

    public AbstractPanel(Locale pLocale, String pModuleName, String pScreenName)
    {
        strModuleName = pModuleName;
        strScreenName = pScreenName;
        setBackground(Color.WHITE);
        setLayout(new BorderLayout());
        setPreferredSize(new Dimension(710, 218));
        contentPanel = new JPanel();
        contentPanel.setLayout(null);
        contentPanel.setOpaque(false);
        disclaimerPanel = new DisclaimerPanel(pLocale);
        super.add(contentPanel, "Center");
        super.add(disclaimerPanel, "South");
    }

    public void setLayout(LayoutManager pLayoutManager)
    {
        if(contentPanel == null)
            super.setLayout(pLayoutManager);
        else
            contentPanel.setLayout(pLayoutManager);
    }

    public Component add(Component pComponent)
    {
        return contentPanel.add(pComponent);
    }

    public void add(Component comp, Object constraints)
    {
        if(contentPanel == null)
            super.add(comp, constraints);
        else
            contentPanel.add(comp, constraints);
    }

    public abstract void actionPerformed(ActionEvent actionevent);

    public abstract void refresh();

    public abstract void refresh(ResponseVO responsevo);

    public abstract HashMap getInputValue(String s);

    public abstract boolean validate(String s);

    public void setText(Locale pLocale)
    {
        disclaimerPanel.setText(pLocale);
    }

    public String getScreenName()
    {
        return strScreenName;
    }

    public String getModuleName()
    {
        return strModuleName;
    }

    public abstract void setDefFocus();

    JPanel contentPanel;
    DisclaimerPanel disclaimerPanel;
    String strScreenName;
    String strModuleName;
}
